package top.kaoshanji.p1ch03a;

import java.util.Comparator;

/**
 * author kaoshanji
 * ^_^
 * create time 2025/2/10 17:54
 */
public class AppleComparator implements Comparator<Apple> {

    @Override
    public int compare(Apple o1, Apple o2) {
        return o1.getWeight() - o2.getWeight();
    }
}
